package com.wu.flandre_common.entity;

/**
 * RpcResponse <br/>
 *
 * @author 50816 <br/>
 * @date 2019/12/22 11:59 <br/>
 */
public class RpcResponse<T> {
    /**
     * Event Handle ID
     */
    private String msg;
    /**
     * Event Handle Data
     */
    private T data;
    /**
     * Event Handle state 0:success -1:fail
     **/
    private int status;

    public String getMsg() {
        return msg;
    }

    public RpcResponse setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public RpcResponse() {
    }

    public RpcResponse(String msg, T data, int status) {
        this.msg = msg;
        this.data = data;
        this.status = status;
    }

    public T getData() {
        return data;
    }

    public RpcResponse setData(T data) {
        this.data = data;
        return this;
    }

    public int getStatus() {
        return status;
    }

    public RpcResponse setStatus(int status) {
        this.status = status;
        return this;
    }

    @Override
    public String toString() {
        return "RpcResponse{" +
                "msg='" + msg + '\'' +
                ", data=" + data +
                ", status=" + status +
                '}';
    }
}
